﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Customer.Bussiness_Service;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using ServiceCore.Tool.TIM;
using ServiceCore.Tool.TIM.im_open_login_svc;
using ServiceCore.Tool.TIM.sns;

namespace Customer.Areas.tim.Controllers
{
    [ApiController, Area("tim"), Route("/tim/[action]")]
    public class timController : ControllerBase
    {

        private readonly IToole_DI _tool;
        private readonly Itim_service _tim;

        public timController(Itim_service Tim, IToole_DI tool)
        {
            _tim = Tim;
            _tool = tool;
        }

        //计算Usersig
        [HttpGet]
        public string get_user_sign(string userid)
        {
            return _tim.get_user_sign(userid);
        }
        //导入账户
        [HttpPost]
        public object account_import(account_import_post model)
        {
            return _tim.account_import(model);
        }
        //加好友
        [HttpPost]
        public object friend_import(friend_import_post model)
        {
            return _tim.friend_import(model);
        }
    }
}